# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Achmad Fathoni<fathoni.id(at)gmail.com>
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >

pkgname=python-trio-websocket
pkgver=0.11.1
pkgrel=1
pkgdesc="WebSocket library for Trio"
arch=('any')
url='https://github.com/HyperionGray/trio-websocket'
license=(MIT)
depends=(python "python-"{exceptiongroup,trio,wsproto})
makedepends=("python-"{build,installer,setuptools,wheel})
source=(https://github.com/HyperionGray/trio-websocket/archive/refs/tags/${pkgver}.tar.gz)
sha256sums=('31b33561be82ea8f748ca2d8adaf3c45a2003c1a5e1550d7cf44e5a884564bce')

build() {
    cd ${pkgname#*-}-${pkgver}
    python -m build --wheel --no-isolation
}

package() {
    cd ${pkgname#*-}-${pkgver}
    python -m installer --destdir="$pkgdir" dist/*.whl
}
